package com.ruoyi.collect.mapper;

import com.ruoyi.collect.domain.CollectRecipeSteps;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 菜谱步骤Mapper接口
 * 
 * @author ruoyi
 * @date 2025-01-19
 */
@Mapper
public interface CollectRecipeStepsMapper
{
    /**
     * 查询菜谱步骤
     * 
     * @param id 菜谱步骤主键
     * @return 菜谱步骤
     */
    public CollectRecipeSteps selectRecipeStepsById(Integer id);

    /**
     * 查询菜谱步骤列表
     * 
     * @param recipeSteps 菜谱步骤
     * @return 菜谱步骤集合
     */
    public List<CollectRecipeSteps> selectRecipeStepsList(CollectRecipeSteps recipeSteps);

    /**
     * 根据菜谱ID查询步骤列表
     * 
     * @param recipeId 菜谱ID
     * @return 菜谱步骤集合
     */
    public List<CollectRecipeSteps> selectRecipeStepsByRecipeId(String recipeId);

    /**
     * 新增菜谱步骤
     * 
     * @param recipeSteps 菜谱步骤
     * @return 结果
     */
    public int insertRecipeSteps(CollectRecipeSteps recipeSteps);

    /**
     * 批量新增菜谱步骤
     * 
     * @param recipeStepsList 菜谱步骤列表
     * @return 结果
     */
    public int batchInsertRecipeSteps(List<CollectRecipeSteps> recipeStepsList);

    /**
     * 修改菜谱步骤
     * 
     * @param recipeSteps 菜谱步骤
     * @return 结果
     */
    public int updateRecipeSteps(CollectRecipeSteps recipeSteps);

    /**
     * 删除菜谱步骤
     * 
     * @param id 菜谱步骤主键
     * @return 结果
     */
    public int deleteRecipeStepsById(Integer id);

    /**
     * 根据菜谱ID删除步骤
     * 
     * @param recipeId 菜谱ID
     * @return 结果
     */
    public int deleteRecipeStepsByRecipeId(String recipeId);

    /**
     * 批量删除菜谱步骤
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteRecipeStepsByIds(Integer[] ids);
}
